export interface ShopGoodsCategory {
  id: number
  parentId: number
  categoryName: string
  image: string
  state: number
  sort: number
  rank: number
  homeReferral: number
}

/**
 * 更新商品分类信息
 */
export interface UpdateShopGoodsCategory {
  id: number
  categoryName?: string
  image?: string
  state?: number
  homeReferral?: number
  sort?: number
}

/**
 * 分类树列表
 */
export interface ShopGoodsCategoryTree extends ShopGoodsCategory {
  children?: ShopGoodsCategoryTree[]
}

/**
 * 获取分类级联
 */
export interface ShopGoodsCategoryCascader {
  id: number
  parentId: number
  categoryName: string
  children?: ShopGoodsCategoryCascader[]
}

/**
 * 添加分类
 */
export interface AddShopGoodsCategory {
  parentId: number
  categoryName: string
  image: string
  rank: number
  state: number
  sort: number
  homeReferral: number
}
